import { axios } from '@/utils/request';

/**
 * 查询访问日志
 *
 * @author pangu
 * @date 2020/5/19 11:57
 */
export function sysVisLogPage(parameter) {
  return axios({
    url: '/sysVisLog/page',
    method: 'get',
    params: parameter,
  });
}

/**
 * 查询操作日志
 *
 * @author pangu
 * @date 2020/5/19 11:57
 */
export function sysOpLogPage(parameter) {
  return axios({
    url: '/sysOpLog/page',
    method: 'get',
    params: parameter,
  });
}

/**
 * 清空访问日志
 *
 * @author pangu
 * @date 2020/6/23 23:09
 */
export function sysVisLogDelete(parameter) {
  return axios({
    url: '/sysVisLog/delete',
    method: 'post',
    data: parameter,
  });
}

/**
 * 清空登录日志
 *
 * @author pangu
 * @date 2020/6/23 23:09
 */
export function sysOpLogDelete(parameter) {
  return axios({
    url: '/sysOpLog/delete',
    method: 'post',
    data: parameter,
  });
}
